package com.wpp.config;

import com.wpp.interceptor.loginIntercepter;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

public class webConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        注册拦截
        registry.addInterceptor(new loginIntercepter()).addPathPatterns("/**").excludePathPatterns("/", "/login", "/css/**", "/js/**");
    }
}
